@import "~taro-ui/dist/style/components/flex.scss";
@import "~taro-ui/dist/style/components/curtain.scss";
@import "@/styles/theme.scss";

page {
  background: white;
}
.user {
  width: 100vw;
  background: white;
  .user-center {
    .profile {
      padding: 40rpx;
      box-sizing: border-box;
      color: black;
      .gold {
        margin-bottom: 35rpx;
      }
      .avatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        display: flex;
        overflow: hidden;
        text-align: center;
        border: 6rpx solid white;
      }
      &-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .title {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          font-size: 25rpx;
        }
        .name {
          margin-bottom: 10rpx;
          font-size: 35rpx;
          font-weight: bold;
        }
      }
      .tel {
        text-align: right;
        display: flex;
        justify-content: flex-end;
      }
    }

    /*订单和课表*/
    .order {
      justify-content: space-between;
      .box {
        border-radius: 16rpx;
        flex: 0 0 48%;
        padding: 40rpx;
        display: flex;
        align-items: center;
        justify-content: space-around;
      }
    }
  }

  .user-main {
    padding: 0 45rpx;

    .main-top {
      width: 100%;
      height: 200rpx;
      background: white;
      margin-top: -55rpx;
      border-radius: 20rpx;
      box-shadow: 0rpx 8rpx 30rpx rgb(191, 199, 221);
    }

    .main-bottom {
      margin-top: 25rpx;
      display: flex;
      justify-content: center;

      .bottom-pic {
        width: 90%;
        height: 90rpx;
        background-image: url("https://chor-young-1300991683.cos.ap-nanjing.myqcloud.com/ctyj_applets/assets/images/page/my/权益.png");
        background-repeat: no-repeat;
        background-size: contain;
        display: flex;
        align-items: center;
      }

      .bottom-text {
        margin-left: 18%;
        font-size: 26rpx;
        color: #48362b;
      }

      .bottom-button {
        color: #fee9c9;
        padding: 9rpx 18rpx;
        background: #362a28;
        margin-left: 5%;
        border-radius: 20rpx;
        font-size: 20rpx;
      }
    }
  }

  .test-spring {
    // width: 80%;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
    text-align: center;
    border-radius: 50rpx;
    height: 100rpx;
    background: red;
    color: white;
    animation: spring-test-show 0.3s forwards;
  }

  .test {
    // width: 80%;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
    text-align: center;
    border-radius: 50rpx;
    height: 100rpx;
    background: red;
    color: white;
  }
  .canvas_mask {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
  }
  .canvas {
    // position: fixed;
    // left: 50%;
    // top: 50%;
    // width: 300px;
    // height: 408px;
    // transform: translate(-50%, -50%);
    /* background-color: #373737; */
    border-radius: 10px;
    overflow: hidden;
  }
}
